package com.publicize.controller;

import com.publicize.commom.commonutils.Result;
import com.publicize.service.RelationshipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@CrossOrigin
@RequestMapping("/proscenium/relation")
public class RelationShipController {
    @Autowired
    private RelationshipService service;
    @GetMapping
    public Result getAll(){
        return Result.ok().data("relation",service.list(null));
    }
}
